<template>
  <div class="homecom">
    <HomeHeader/>
    <!-- <div class="tou">
      <img src="@/assets/tou.png" alt="">
      登录者账号
    <button @click="tui()">[退出登录]</button>      
    </div> -->
    <main>
      <HomeSlide/>
  <!-- <div class="zhong">
    <aside>
      <router-link to="/home/add">添加人员</router-link>
      <router-link to="/home/list">人员列表</router-link>
    </aside> -->
    <aside>
      <router-view></router-view>
    </aside>
    </main>
  <!-- </div> -->
  </div>
</template>

<script>
//1.导入子组件
import HomeHeader from "./HomeHeader.vue";
import HomeSlide from "./HomeSlide.vue";
export default {
  name:"HomeCom",
//2.注册子组件
components:{
  HomeHeader,HomeSlide
},
data(){
    return{

    }
},
methods:{
    tui(){
        sessionStorage.clear();
        this.$router.push('/login');
    }
}
}
</script>

<style scoped>
/* .home{
  width: 100%;
  height: 100%;
}
.tou{
  width: 100%;
  overflow: hidden;
  padding: 5px;
  background-color: #e81c20;
}
.zhong{
  width: 100%;
  height: 849px;
  display: flex;
}
aside{
    width: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f87c20;
}
article{
  width: 100%;
  background-color: #f8acc8;
}
aside a{
    width: 200px;
    height: 40px;
    color: #c2c5c6;
}
img{
  width: 90px;
  height: 60px;
}
button{
  border: none;
  color: white;
  font-size: 600;
  background-color: #e81c20;
} */
.homecom{
  width: 100%;
  height: 98vh;
  overflow: hidden;
}
.homecom main{
  width: 100%;
  height:100%;
  display: flex;
  justify-content: space-between;
}
.homecom main aside{
  width: 80%;
  height: 100%;
  background-color: white;
}
</style>